﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;

namespace Project.Models.System.JurisdictionFile
{
    /// <summary>
    /// 管理员与角色
    /// </summary>
    public class UserRole:BaseEntity
    {
        /// <summary>
        /// 管理员外键
        /// </summary>
        public long UserId { get; set; }
        [SugarColumn(IsIgnore = true)]
        public UserInfo UserInfo { get; set; }
        /// <summary>
        /// 角色外键
        /// </summary>
        public long RoleId { get; set; }
        [SugarColumn(IsIgnore = true)]
        public RoleInfo RoleInfo { get; set; }
    }
}
